 |
 |
 |
 |
#230043 - 12/26/02 10:03 AM
[6.2] Quick Reply 3.0
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
MOD NAME: QUICK REPLY MOD 3.0 <br /> <br /> DESCRIPTION: Adds a quick reply box to the bottom of a thread. Version 3.0 adds a Pulldown Menu for Post Icons, a Preview Post Button, a Spellcheck button and a popup Graemlin Panel (thanks JustDave) <br /> <br /> BY: JoshPet, Allen Ayres, Gardener and JustDave for bug fixes <br /> <br /> DATE: 12.26.2002 <br /> <br /> CREDITS: Allen Ayres for version 1, Gardener for Javascript, JustDave for bug fixes and Graemlin Popup, JoshPet for bug fixes and enhancements. German translation by jluerken. <br /> <br /> VERSION: 3.0 for UBB.Threads 6.2 <br /> <br /> REQUIREMENTS: A full version of UBB.Threads 6.2 <br /> COMPATIBILITY: UBB.Threads 6.2 <br /> <br /> DEMO: login at www.measurection.com with username: testing and password: testing <br /> <br /> FILES MODIFIED: showflat.tmpl, showflat.php, languages/english/showflat.php, showthreaded.php, showthreaded.tmpl, languages/generic.php <br /> <br /> NEW FILES: graemlinpanel.php (thanks JustDave!) NOTE: If you are using JustDave's Popup Graemlin modification already, you don't need to add this file. The script is the same. <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br /> Version history: <br /> - Version 1.0: released (08/10/2002)
- Version 1.1: ubbcode parsed and post icons fixed (08/11/2002)
- Version 1.2: Quick Reply only avail. to Logged in User Correctly adds the "Re:" (only once) to reply. (08/12/2002
- Version 1.3: Languages settings added (08/12/2002)
- Version 1.4: Fix added to remove box if thread is closed (08/13/2002)
- Version 1.5: User can select which post to reply to. (08/14/2002)
- Version 1.6: Fixed "Re:" issue with Javascript and added code so quick reply link does not appear if the user is not logged in or the thread is closed (08/17/2002)
- Version 1.7: Javascript adds the quote instead of replacing. (08/18/2002) "Re:" checking added to javascript. Added a quick reply box to threaded view as well.
- Version 1.8: Quick Reply now works with Mozilla, Opera won't break. Fixed a bug when replying to anonymous posts. Now adds the username correctly. *
- Version 2.0: Updated for UBB.Threads 6.2 (12/26/2002) by JoshPet. This simply does a quick reply and not a quick quote as the Auto Quote is now a standard function of Threads
- Version 2.1: With JustDave's help we've finally licked the problem voting in polls when Quick Reply was installed.
- Version 2.2: Fixes a bug which allowed a reply to a moved post pointer and created some wacky results. 1/12/03
- Version 3.0: Adds a pulldown menu for Post Icons, a preview Post Button, a Spell Check Button, and a popup Graemlin Panel (thanks JustDave <img src="/forum/images/graemlins/smile.gif" alt="" /> ) 2/1/03 <br />
<br /> <br />For discussion and bug reports, please come here: <br /> http://www.threadsdev.com/ <br /> <br /> PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO MODIFY!! <br /> <br />Note: If you are running JustDave's very popular "Reply to Who" mod, you won't be able to find the code it tells you to find in showflat.php <br /> <br />Instead, look for the second occurance of this: <br /> <br />$postrow[$i]['Subject'] = $Subject; <br /> <br /> <br />Change to this: <br /> <br />$postrow[$i]['Subject'] = "<span id=\"subject$i\">$Subject</span>"; <br /> <br /> <br /><img src="/forum/images/graemlins/smile.gif" alt="" />
Attachments
62542-QuickReply3.0.zip (221 downloads)
Edited by JoshPet (02/22/03 11:02 PM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230049 - 12/29/02 02:33 AM
Re: [6.2] Quick Reply 2.0
[Re: MercAqua]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
Pappy,<br /><br />Just to update. The issue of polls seems to be cleared up in a "clean" install of threads.<br /><br />I had one or two errors reported when I was on a clean copy. There may still be something lingering, but it was very isolated. Might have been a browser thing.<br /><br />I added in Quick Reply, and the problem seemed better. Some errors did pop up though. It seems that if the poll is the first in the thread, it doesn't work right for everyone if quick reply is installed. But if the poll is in a reply, it seems to work better. Go figure.<br /><br />I'm determined to solve this so it's totally bug free if it kills me. LOL <img src="/forum/images/graemlins/tongue.gif" alt="" /> I'll go through this again, and make sure there are no conflicting variables. When I try to validate the page with quick reply, it says there's an extra </form> tag. That could be the culprit...since a poll is a form, that could goof things up.<br /><br />If I can't nail it down, plan B would be to redesign it so it doesn't appear at all if there's a poll in the thread. <img src="/forum/images/graemlins/grin.gif" alt="" /> Might be the best way around it. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />So if you use alot of polls, hold off on the quick reply. <img src="/forum/images/graemlins/smile.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230070 - 12/31/02 05:44 PM
Re: [6.2] Quick Reply 2.0 *DELETED*
[Re: Gorlum]
|
That 70's Guy
Registered: 06/24/01
Posts: 4097
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230086 - 01/01/03 05:54 PM
Re: [6.2] Quick Reply 2.1
[Re: jacksonm99]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230100 - 01/04/03 12:39 PM
Re: [6.2] Quick Reply 2.1
[Re: ]
|
Veteran
Registered: 02/22/02
Posts: 2575
Loc: England
|
To add the spell checker to the quick reply box...<br /><br />in showflat.tmpl<br /><br />after<br /><br /><input type="submit" name="textcont" value="{$ubbt_lang['TEXT_CONT']}" class="buttons" /><br /><br />add<br /><br /> <input type="button" name="spellcheck" value="{$ubbt_lang['SPELL_CHECK']}" onclick="window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.Body.value + '\\r\\n\\r\\n'), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=500,height=500');" class="buttons" /><br /><br />(I've changed the width to 500 so that the user does not have to scroll from left to right, to see all the text in the box.)
_________________________
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230153 - 02/24/03 09:03 PM
Re: [6.2] Quick Reply 3.0
[Re: ]
|
Member
Registered: 01/30/02
Posts: 246
Loc: Arizona
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230167 - 02/26/03 09:08 AM
Re: [6.2] Quick Reply 3.0
[Re: ]
|
Addict
Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
|
Well, you didn't follow my instructions, if you had it would probably work. <br /> <br />There is a javascript function missing from your showflat template, without it, there is no possible way the graemlins can be added to your text box, because that is the function that actually does it. <br /> <br />Here is how you fix it. Find these lines in showflat.tmpl and showthreaded.tmpl (I've split one line so that this post won't be too wide): <br /> <br />function openGraemlinPanel() { <br /> graemlinWindow=window.open('http://www.doording.com/ubbthreads/graemlinpanel.php','graemlinpanel', <br />'scrollbars=yes,resizable=yes,width=300,height=400'); <br /> if (graemlinWindow.opener == null) graemlinWindow.opener = self; <br />} <br /> <br /> <br />Add this code below in both files: <br /> <br />function DoPopupSmilie(addSmilie) { <br /> insertAtCaret(document.replier.Body, ' '+ addSmilie + ' ' ); <br /> document.replier.Body.focus(); <br /> return; <br />} <br /> <br /> <br /> <br />To make your clock work, you will have to find these lines: <br /> <br /> window.setTimeout("tick(); <br />", 100); <br /> <br /> <br />And replace them with this: <br /> <br /> window.setTimeout("tick();", 100); <br /> <br /> <br /> <br />I hope this is clear enough this time. <br /> <br /> <br /> Edit: <br />I just took a look at the code of the graemlin popup here at threadsdev and it isn't exactly the same, it doesn't need the DoPopupSmilie() function which is probably why it isn't included in the instructions. You should probably get the latest version of the graemlinpopup script, either from this mod or from JustDaves original mod, then you don't need to do the changes above.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|